All Functions of Week 10

resid

{stats}

Extracts model residuals from objects returned by modeling functions

bptest

{lmtest}

Breusch-Pagan Test for Homoscedasticity

library

{base}

Load an R package

nobs

{gdata}

Compute the number of non-missing observations

pchisq

{stats}

Gives the distribution function of the chi-squared distribution

summary

{base}

Obtain summary statistics or detailed regression output

set.seed

{base}

Initialise a pseudorandom number generator.

vif

{car}

Calculate Variance Inflation Factor

setwd

{base}

Set Working Directory

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

coeftest

{lmtest}

Inference for Estimated Coefficients

lm

{base}

Fit a linear model

sample_frac

{dplyr}

Sample a fraction of observations from a data frame

vcovHC

{sandwich}

Heteroscedasticity-consistent estimation of the covariance matrix of the coefficient estimates

filter

{dplyr}

Filter out rows of a data frame according to logical vector

The end!